package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.entity.content.ArticleCategory;
import com.ms.p2p.provider.ArticleCategoryProvider;
import com.ms.p2p.service.impl.ArticleCategoryServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class ArticleCategoryProviderImpl implements ArticleCategoryProvider {
    @Autowired
    ArticleCategoryServiceImpl articleCategoryService;


    public List<ArticleCategory> getlist() {
        return articleCategoryService.getlist();
    }

    public ArticleCategory get(String id) {
        return articleCategoryService.get(id);
    }

    public int insert(ArticleCategory articleCategory) {
        return articleCategoryService.insert(articleCategory);
    }

    public int update(ArticleCategory articleCategory) {
        return articleCategoryService.update(articleCategory);
    }

    public int del(Integer id) {
        return articleCategoryService.del(id);
    }

    public ArticleCategory getByCateName(String cate_name) {
        return articleCategoryService.getByCateName(cate_name);
    }
}
